package com.example.javapoint.key_abstract;

abstract class Vehicle {
    abstract void bike();

    void car() {
        System.out.println("this car is running!");
    }
}

class Honda extends Vehicle {

    @Override
    void bike() {
        System.out.println("this bike is running!");
    }
}

public class AbstractExample1 {
    public static void main(String[] args) {
        Honda honda = new Honda();
        honda.bike();
        honda.car();
    }
}
